﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true"
    CodeBehind="AutoDropWater.aspx.cs" Inherits="LotteryVote.AutoDropWater" %>

<%@ Register Src="~/Controls/Pager.ascx" TagPrefix="LV" TagName="Pager" %>
<%@ Register Src="~/Controls/DropWaterSearch.ascx" TagPrefix="LV" TagName="DropWaterSearch" %>
<%@ Register Src="~/Controls/AddDropWater.ascx" TagPrefix="LV" TagName="AddDropWater" %>
<asp:Content ID="Header" ContentPlaceHolderID="head" runat="server">
    <link href="Style/Order.css" rel="stylesheet" type="text/css" />
    <link href="Style/TableBaseStyle.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Main" ContentPlaceHolderID="main" runat="server">
    <LV:DropWaterSearch ID="lv_dropSearch" runat="server" DisplayCompany="false" />
    <LV:AddDropWater ID="lv_addDropWater" runat="server" DisplayCompany="false" />
    <asp:Repeater ID="rpt_AutoDrop" runat="server" 
        onitemcommand="rpt_AutoDrop_ItemCommand">
        <HeaderTemplate>
            <table cellpadding="0" cellspacing="0" style="width: 100%">
                <thead>
                    <tr>
                        <td colspan="7">
                            <%=GetGlobalResourceObject("Resource", "AutoDropWater")%><%=GetGlobalResourceObject("Resource","Limit") %>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <%=GetGlobalResourceObject("Resource","No") %>
                        </td>
                        <td>
                            <%=GetGlobalResourceObject("Resource","Num") %>
                        </td>
                        <td>
                            <%=GetGlobalResourceObject("Resource","GameType") %>
                        </td>
                        <td>
                            <%=GetGlobalResourceObject("Resource","Amount") %>
                        </td>
                        <td>
                            <%=GetGlobalResourceObject("Resource","DropWater") %>
                        </td>
                        <td>
                            <%=GetGlobalResourceObject("Resource","Function") %>
                        </td>
                    </tr>
                </thead>
                <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td>
                    <%# Container.ItemIndex+1 %>
                </td>
                <td>
                    <%#Eval("Num")%>
                </td>
                <td>
                    <%# FindGamePlayWay(Eval("GamePlayWayId")) %>
                </td>
                <td>
                    <%#Eval("Amount") %>
                </td>
                <td>
                    <%#Eval("DropValue") %>
                </td>
                <td>
                    <asp:LinkButton ID="lbtn_del" runat="server" Text="<%$Resources:Resource,Delete %>"
                        CommandName="Delete" CommandArgument='<%#Eval("DropId") %>' OnClientClick='return confirm("Are you sure?")'></asp:LinkButton>
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </tbody> </table>
        </FooterTemplate>
    </asp:Repeater>
    <LV:Pager ID="lv_page" runat="server" Class="pagerGray" />
    <script type="text/javascript">
        $(document).ready(function () {
            $(".Number").numeral();
            $("input[type='submit']").bind("click", function () {
                addAction("Search", "false", true);
            });
        });
    </script>
</asp:Content>
